Optimal. Leaf size=74 \[ \frac {\log (\sin (c+d x))}{a^3 d}-\frac {\log (1+\sin (c+d x))}{a^3 d}+\frac {1}{2 a d (a+a \sin (c+d x))^2}+\frac {1}{d \left (a^3+a^3 \sin (c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {2786, 46}
\begin {gather*} \frac {1}{d \left (a^3 \sin (c+d x)+a^3\right )}+\frac {\log (\sin (c+d x))}{a^3 d}-\frac {\log (\sin (c+d x)+1)}{a^3 d}+\frac {1}{2 a d (a \sin (c+d x)+a)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 46
Rule 2786
Rubi steps
\begin {align*} \int \frac {\cot (c+d x)}{(a+a \sin (c+d x))^3} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{x (a+x)^3} \, dx,x,a \sin (c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \left (\frac {1}{a^3 x}-\frac {1}{a (a+x)^3}-\frac {1}{a^2 (a+x)^2}-\frac {1}{a^3 (a+x)}\right ) \, dx,x,a \sin (c+d x)\right )}{d}\\ &=\frac {\log (\sin (c+d x))}{a^3 d}-\frac {\log (1+\sin (c+d x))}{a^3 d}+\frac {1}{2 a d (a+a \sin (c+d x))^2}+\frac {1}{d \left (a^3+a^3 \sin (c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 52, normalized size = 0.70 \begin {gather*} \frac {2 \log (\sin (c+d x))-2 \log (1+\sin (c+d x))+\frac {3+2 \sin (c+d x)}{(1+\sin (c+d x))^2}}{2 a^3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.20, size = 49, normalized size = 0.66
method | result | size |
derivativedivides | \(\frac {\ln \left (\sin \left (d x +c \right )\right )+\frac {1}{2 \left (1+\sin \left (d x +c \right )\right )^{2}}+\frac {1}{1+\sin \left (d x +c \right )}-\ln \left (1+\sin \left (d x +c \right )\right )}{a^{3} d}\) | \(49\) |
default | \(\frac {\ln \left (\sin \left (d x +c \right )\right )+\frac {1}{2 \left (1+\sin \left (d x +c \right )\right )^{2}}+\frac {1}{1+\sin \left (d x +c \right )}-\ln \left (1+\sin \left (d x +c \right )\right )}{a^{3} d}\) | \(49\) |
risch | \(\frac {2 i \left (-{\mathrm e}^{i \left (d x +c \right )}+3 i {\mathrm e}^{2 i \left (d x +c \right )}+{\mathrm e}^{3 i \left (d x +c \right )}\right )}{d \,a^{3} \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )^{4}}-\frac {2 \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}{a^{3} d}+\frac {\ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )}{d \,a^{3}}\) | \(98\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 72, normalized size = 0.97 \begin {gather*} \frac {\frac {2 \, \sin \left (d x + c\right ) + 3}{a^{3} \sin \left (d x + c\right )^{2} + 2 \, a^{3} \sin \left (d x + c\right ) + a^{3}} - \frac {2 \, \log \left (\sin \left (d x + c\right ) + 1\right )}{a^{3}} + \frac {2 \, \log \left (\sin \left (d x + c\right )\right )}{a^{3}}}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 104, normalized size = 1.41 \begin {gather*} \frac {2 \, {\left (\cos \left (d x + c\right )^{2} - 2 \, \sin \left (d x + c\right ) - 2\right )} \log \left (\frac {1}{2} \, \sin \left (d x + c\right )\right ) - 2 \, {\left (\cos \left (d x + c\right )^{2} - 2 \, \sin \left (d x + c\right ) - 2\right )} \log \left (\sin \left (d x + c\right ) + 1\right ) - 2 \, \sin \left (d x + c\right ) - 3}{2 \, {\left (a^{3} d \cos \left (d x + c\right )^{2} - 2 \, a^{3} d \sin \left (d x + c\right ) - 2 \, a^{3} d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {\cot {\left (c + d x \right )}}{\sin ^{3}{\left (c + d x \right )} + 3 \sin ^{2}{\left (c + d x \right )} + 3 \sin {\left (c + d x \right )} + 1}\, dx}{a^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 9.82, size = 59, normalized size = 0.80 \begin {gather*} -\frac {\frac {2 \, \log \left ({\left | \sin \left (d x + c\right ) + 1 \right |}\right )}{a^{3}} - \frac {2 \, \log \left ({\left | \sin \left (d x + c\right ) \right |}\right )}{a^{3}} - \frac {2 \, \sin \left (d x + c\right ) + 3}{a^{3} {\left (\sin \left (d x + c\right ) + 1\right )}^{2}}}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 6.65, size = 148, normalized size = 2.00 \begin {gather*} \frac {\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{a^3\,d}-\frac {4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+6\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{d\,\left (a^3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+4\,a^3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+6\,a^3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+4\,a^3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+a^3\right )}-\frac {2\,\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+1\right )}{a^3\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________